package com.bestdata.forward.model;

import lombok.Data;

import java.util.List;

/**
 * PMS云平台设备信息
 *
 * @author chizy
 * @date 2021年1月17日10:21:07
 * @version 1.0.0
 */
@Data
public class DeviceDTO {

    /**
     * PMS设备名称
     */
    private String devname;

    /**
     * PMS设备ID
     */
    private String devid;

    /**
     * 数据时间
     */
    private String tm;

    /**
     * 传感器信息
     */
    private List<DeviceSensorDTO> sensors;

    /**
     * 结果值
     */
    private String value;

    /**
     * 桥梁编码
     */
    private String bridgeCodeName;


    public void init(String devname, String devid,String tm, String bridgeCodeName, List<DeviceSensorDTO> deviceSensorDTOS){

        this.bridgeCodeName = bridgeCodeName;
        this.devname = devname;
        this.devid = devid;
        this.tm = tm;
        this.sensors = deviceSensorDTOS;
    }
}
